<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>水军AB切换</title>
    <link rel="stylesheet" href="${base}/layui/css/layui.css">
    <link rel="stylesheet" href="${base}/awesome/css/font-awesome.min.css">
     <link rel="stylesheet" href="${base}/css/admin.css">
    <style>
    	.layui-bg-black{        width: 200px;height: 136px;margin-right: 30px;float: left;text-align: center;font-size: 33px;color: #000000!important;padding-top: 30px;}
    	.hide {display: none;}
    	.checkbox{display: inline-block;}
    	.layui-form-item{font-size: 18px;}
    	.layui-input{display: inline-block;}
    	.width180 {width: 160px; margin-right: 5px;float: left;}
    	.layui-select{float: left;}
    	img{ max-width: 40%;}
    </style>
</head>
<body  class="layui-layout-body" style="overflow:scroll;">
<#include "/common/left.flt">	
<div class="layui-main" style="position: absolute;left: 205px;top: 20px; width: calc(100% - 210px);" >
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;">
  <legend>操作提示</legend>
</fieldset>
<table class="layui-table" >
	<thead>
        <tr>
             <th>组号</th>
             <th>现在位置点</th>
             <th>操作</th>
         </tr>
     </thead>
     <tbody>
     <#list list as one>
     <tr>
     	<td>${one.zu?default('')}</td>
     	<td>${one.user_name?default('')}</td>
     	<td><button class="layui-btn" onclick="qiehuan('${one.zu?default('')}');"><i class="fa fa-check"></i> 切换</button></td>
     </tr>
     </#list>
     </tbody>
</table>
</body>
<script src="${base}/js/jquery-2.1.4.min.js" type="text/javascript"></script>
<script src="${base}/layui/layui.all.js"></script>
<script src="${base}/laydate/laydate.js"></script>
<script type="text/javascript">
function qiehuan(zu){
	$("button").attr('disabled',true);
	layer.alert("正在执行,时间很长，不要关闭页面，忙其他的去");
	$.post("${base}/users_list/qiehuan_zu",
	   		{"zu":zu},function(data){ 
	   			layer.alert(data);
	   		}
	);  
}
</script>
</html>